<?php $this->beginWidget('CHtmlPurifier'); ?>
<?php if(!$received){echo 'No received messages'; }?>
<?php foreach($received as $newmsg): ?>
<p><img src="/mrejata/images/msg.png" style="margin-bottom:-10px;"/>&nbsp;&nbsp;&nbsp;<b>

<? echo CHtml::link($newmsg->subject,array('msg/read','id'=>$newmsg->id,'sid'=>md5($newmsg->subject))); ?>

</b> - from <?php echo CHtml::link($newmsg->sender->username,array('site/user','id'=>$newmsg->sender->id)); ?><br/></p>

<?php endforeach; ?>
<?php $this->endWidget(); ?>
